<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib prefix="c"  uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt"  uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="css/help1.css"/>
<title>时尚屋—留言板</title>
</head>
<body>
<%@ include file="common.jsp" %>
<div id="content_top">
		<p>您现在的位置：<a href="index.html">首页</a> > <span>留言板</span></p>
		<ul>
			<li><a href="help.jsp#help_1">如何购物</a></li>
			<li><a href="help.jsp#help_2">时尚屋承诺</a></li>
			<li><a href="help.jsp#help_3">联系客服</a></li>
            <li><a href="help.jsp#help_4">网上购物常见问题</a></li>
			<li><a href="help.jsp#help_5">网上支付常见问题</a></li>
			<li><a href="help.jsp#help_6">支付宝常见问题</a></li>	            		
		</ul>
 		<form action="LiuyanServlet?m=save" method="post">
			<input type="hidden" name="Name" value="${loginUser.name }" />
			<p style=" color:#red; font-size:18px; color:#c00;"> &nbsp; &nbsp;留下您宝贵的意见：</p>
 			<textarea name="Message" autofocus="autofocus"  style=" margin:10px 0 5px 10px; width:900px; height:220px;"></textarea><br>		
 			<input type="submit" value="提交" style="float:right; margin-right:70px; width:100px; height:40px;"/>
 			<input type="reset" onclick="return confirm('你确定清空吗')" value="清空" style="float:right;  width:100px; height:40px;">
 		</form>
</div>
<div id="content" style=" border:1px solid #ccc; margin-top:15px;">
	<h3 style=" background:#ccc; height:35px; line-height:35px; padding-left:25px;">留言板</h3>
		<ul style=" margin:20px 20px 20px 20px; line-height:50px;">
		    <c:forEach items="${messageList}" var="m">
				<li style=" list-style:none; border-bottom:1px solid ;">
				<span style=" color:#c03; margin-left:10px; ">${m.name } :</span>
				<span> ${m.message}</span>
				<span style="float:right; margin-right:10px;"> ${m.createTime}</span></li>       
			</c:forEach>
		</ul>
</div>
<%@ include file="footer.jsp" %>
</body>
</html>